<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>登入失敗</title>
</head>
<body>

<%


		String errorcode = (String) session.getAttribute("error");

		if (errorcode!=null) {

		out.println("<h2 align=center>登入失敗</h2>");
		out.println("<br>");
		


		if (errorcode.equals("LI-001")){
			out.print("<h4 align=center>錯誤代號 : " + errorcode + "</h4>");
			out.println("<h4 align=center>沒有該使用者名稱 " + "</h4>");
		};
		if (errorcode.equals("LI-002")){
			out.print("<h4 align=center>錯誤代號 : " + errorcode + "</h4>");
			out.println("<h4 align=center>密碼錯誤 " + "</h4>");
		};
		if (errorcode.equals("LI-003")){
			out.print("<h4 align=center>錯誤代號 : " + errorcode + "</h4>");
			out.println("<h4 align=center>請先啟動帳戶" + "<a href='activelogin.jsp' align=center>啟動帳戶</a>" +"</h4>");
			
		};
		out.println("<br>");
		out.println("<a href='login.jsp' align=center>再次登入</a>");
		} else {
			out.println("<a href='login.jsp' align=center>請先登入</a>");
		}
		 %>	


</body>
</html>